<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- this is comment -->
    <div id="box">box</div>
    <script>
      const comment = document.body.childNodes[1];

      console.log(comment.nodeValue);
      console.log(comment.data);

      setTimeout(() => {
        comment.data = "hello this jack";
        console.log(comment.data);
      }, 4000);
    </script>
  </body>
</html>
